package com.nuanshui.framework.task;

import java.util.concurrent.Callable;

public  abstract class Task<T> implements Callable<T> {

	private Integer start = null;
	private Integer end = null;
	
	
	public Integer getStart() {
		return start;
	}

	public Integer getEnd() {
		return end;
	}
	
	public Task(Integer start, Integer end) {
		super();
		this.start = start;
		this.end = end;
	}

	@Override
	public T call() throws Exception {

		return handler();
	}
	
	public abstract T handler();

}
